package d01016;

public class Test1 {
    public static void main(String[] args){
        //创建主贴信息
        Topic topic = new Topic();
        topic.tid=1001;
        topic.title="二十大开幕式";
        topic.content="2022.10.16上午10:00准时开始.......";
        topic.section="政治";
        System.out.println(topic.getInfo());
        //创建回帖信息
        Reply reply = new Reply();
        reply.tid=2001;
        reply.topic=topic;//对哪个主贴进行回复
        reply.title="开幕式";
        reply.content="守江山就是收人心.....";

        System.out.println(reply.getInfo());


    }
}
